package com.yunji.order.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
public class OrderOrdinalDTO {

    @NotNull
    @ApiModelProperty("格子序号")
    private Integer ordinal;

    @Max(100)
    @Min(1)
    @ApiModelProperty("商品数量")
    @NotNull(message = "商品数量不能为空")
    private Integer productNums;

}
